﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CsRedisTest.Interfaces
{

    public class MyAccount : IAccountData
    {
        public MyAccount()
        {
            
        }
        public Guid Id { get; set; }
        public decimal Money { get; set; }
        public List<ITranscationHistoryData> Transcations { get; set; }

        public static MyAccount New()
        {
            return new MyAccount()
            {
                Id = Guid.NewGuid(),
                Money = Guid.NewGuid().ToByteArray().First(),
                Transcations = new List<ITranscationHistoryData>()
                {
                    MyTransacation.New()
                    ,MyTransacation.New()
                }
            };
        }
    }
}
